Boyuan Yang [Sun, 5 Sep 2021 20:33:21 +0000 (20:33 +0000)]
Update Chinese (China) translation
Daniel Șerbănescu [Sun, 5 Sep 2021 18:43:29 +0000 (18:43 +0000)]
Update Romanian translation
(cherry picked from commit
bb72acf9cd341ca30c55a0392c842e955b42e58d)
Daniel Șerbănescu [Sun, 5 Sep 2021 18:34:20 +0000 (18:34 +0000)]
Update Romanian translation
(cherry picked from commit
63d829bbc182bb06fe28a2e649f50360bc4442b8)
Matthias Clasen [Sun, 5 Sep 2021 17:26:13 +0000 (17:26 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
inspector: Cosmetics
See merge request GNOME/gtk!3925
Matthias Clasen [Sun, 5 Sep 2021 16:59:11 +0000 (12:59 -0400)]
inspector: Cosmetics
Make some settings entries smaller, and make the
scales match in size. Also, inline adjustments
in the ui file, since we can do that now.
Matthias Clasen [Sun, 5 Sep 2021 16:12:34 +0000 (16:12 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Avoid hand-rolled color glyph information
See merge request GNOME/gtk!3924
Matthias Clasen [Sat, 4 Sep 2021 13:41:20 +0000 (09:41 -0400)]
Bump pango req to 1.49.1
We are using pango api that was introduced in 1.49.1
without ifdefs, so we should require it.
Matthias Clasen [Sat, 4 Sep 2021 13:39:29 +0000 (09:39 -0400)]
Avoid hand-rolled color glyph information
Followup to
b244f31337eea. Pango provides color glyph
information for us now, so we don't need to steal a
bit anymore.
Anders Jonsson [Sun, 5 Sep 2021 14:11:36 +0000 (14:11 +0000)]
Update Swedish translation
(cherry picked from commit
19af9601636691fe13ba15bc4b69f18df175c7ca)
Yaron Shahrabani [Sun, 5 Sep 2021 13:45:49 +0000 (13:45 +0000)]
Update Hebrew translation
Matthias Clasen [Sun, 5 Sep 2021 04:21:29 +0000 (04:21 +0000)]
Merge branch 'better-font-rendering-demo' into 'master'
gtk-demo: Improve the font rendering demo
See merge request GNOME/gtk!3923
Matthias Clasen [Sun, 5 Sep 2021 03:31:05 +0000 (23:31 -0400)]
gtk-demo: Font rendering - Add some bling
Fade the outlines and pixels in and out.
Matthias Clasen [Sun, 5 Sep 2021 02:59:26 +0000 (22:59 -0400)]
gtk-demo: Font rendering - expand docs
Matthias Clasen [Sun, 5 Sep 2021 02:30:54 +0000 (22:30 -0400)]
gtk-demo: Font rendering - Add keynav
Add mnemonics to most controls, and make
Ctrl+/- change the zoom.
Matthias Clasen [Sun, 5 Sep 2021 01:20:55 +0000 (21:20 -0400)]
gtk-demo: Font rendering - add outlines
Should outlines as well.
Matthias Clasen [Sun, 5 Sep 2021 00:49:01 +0000 (20:49 -0400)]
gtk-demo: Font rendering - better start
Turn antialiasing on initially, and turn the
extents and grid off. Otherwise we show pretty
shocking rendering right from the start.
Matthias Clasen [Sun, 5 Sep 2021 00:28:59 +0000 (20:28 -0400)]
gtk-demo: Font rendering - improve the grid
Allow changing the character shown in the grid.
Matthias Clasen [Sun, 5 Sep 2021 02:43:44 +0000 (22:43 -0400)]
Cosmetics
Remove an unused object from the font rendering
demo ui file.
Matthias Clasen [Sat, 4 Sep 2021 23:39:10 +0000 (23:39 +0000)]
Merge branch 'ebassi/accel-parse-doc' into 'master'
Improve the gtk_accelerator_parse() docs
See merge request GNOME/gtk!3921
Matthias Clasen [Sat, 4 Sep 2021 21:39:30 +0000 (21:39 +0000)]
Merge branch 'text-fixes' into 'master'
textview: fix pango context invalidation
See merge request GNOME/gtk!3922
Asier Sarasua Garmendia [Sat, 4 Sep 2021 20:54:26 +0000 (20:54 +0000)]
Update Basque translation
(cherry picked from commit
0768addbb3e79879fd8d4b207320f94ae8d69906)
Matthias Clasen [Sat, 4 Sep 2021 18:46:32 +0000 (14:46 -0400)]
textview: Invalidate Pango contexts
We need to invalidate the Pango contexts when
font settings change. Use the new helper
gtk_widget_update_pango_context to make it less
likely that we forget to update some things.
Matthias Clasen [Sat, 4 Sep 2021 19:35:11 +0000 (15:35 -0400)]
widget: Provide a helper for updating pango contexts
Matthias Clasen [Sat, 4 Sep 2021 19:16:25 +0000 (15:16 -0400)]
Rename an internal function
It occupies a name I want to reuse for something else.
Matthias Clasen [Sat, 4 Sep 2021 18:52:15 +0000 (14:52 -0400)]
Revert "gsk: Add font options to text nodes"
This reverts commit
f1347f5841ea526c7016a8fbd329b45001812a23.
Matthias Clasen [Sat, 4 Sep 2021 18:52:05 +0000 (14:52 -0400)]
Revert "gsk: Add font options to the glyph cache"
This reverts commit
6599cb001fa184ed224c655519d659f168e9face.
Matthias Clasen [Sat, 4 Sep 2021 18:51:54 +0000 (14:51 -0400)]
Revert "gsk: Pass font options along"
This reverts commit
299c7c35148e49369c151aa4eae6066d09e9d4b4.
Matthias Clasen [Sat, 4 Sep 2021 18:51:41 +0000 (14:51 -0400)]
Revert "gtk: Pass font options along"
This reverts commit
062a15310aefd7feac19a5b7d2c3257d317dfff9.
Goran Vidović [Sat, 4 Sep 2021 18:11:38 +0000 (18:11 +0000)]
Update Croatian translation
(cherry picked from commit
6fe3b21a01fd507116dfa7cb198022594eac128e)
Emmanuele Bassi [Sat, 4 Sep 2021 17:56:08 +0000 (18:56 +0100)]
Improve the gtk_accelerator_parse() docs
We need to escape the modifiers in angular brackets, or Markdown will
consider them as HTML tags.
We also should document the modifiers we're parsing.
Boyuan Yang [Sat, 4 Sep 2021 17:38:16 +0000 (17:38 +0000)]
Update Chinese (China) translation
Goran Vidović [Sat, 4 Sep 2021 17:15:55 +0000 (17:15 +0000)]
Update Croatian translation
(cherry picked from commit
543b7defec1954cfced1a4de2a073cfbf5e324ad)
Changwoo Ryu [Sat, 4 Sep 2021 09:02:48 +0000 (09:02 +0000)]
Update Korean translation
Changwoo Ryu [Sat, 4 Sep 2021 08:59:22 +0000 (08:59 +0000)]
Update Korean translation
(cherry picked from commit
0a5af7693251f02b39bb73208f58609bbd2c8fb8)
Anders Jonsson [Fri, 3 Sep 2021 22:59:22 +0000 (22:59 +0000)]
Update Swedish translation
(cherry picked from commit
2dbcad428a57bac6521600267fa2d374628e2293)
Matthias Clasen [Fri, 3 Sep 2021 18:16:33 +0000 (18:16 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
widget: Redraw when font options change
See merge request GNOME/gtk!3917
Matthias Clasen [Fri, 3 Sep 2021 17:55:39 +0000 (13:55 -0400)]
widget: Redraw when font options change
Its the right thing to do, even if it is a rare event.
Matthias Clasen [Fri, 3 Sep 2021 17:21:08 +0000 (17:21 +0000)]
Merge branch 'small-text-fixes' into 'master'
gsk: Pass font options down
See merge request GNOME/gtk!3908
Matthias Clasen [Fri, 3 Sep 2021 11:21:15 +0000 (07:21 -0400)]
gtk: Pass font options along
Pass the widget's font options along when we
are creating text nodes.
Matthias Clasen [Fri, 3 Sep 2021 11:19:36 +0000 (07:19 -0400)]
gsk: Pass font options along
Use the font options from the text node when
looking up glyphs.
Matthias Clasen [Wed, 1 Sep 2021 03:01:43 +0000 (23:01 -0400)]
gsk: Add font options to the glyph cache
The cairo_t that we create to render glyphs for
the glyph cache needs to match the font options
that are supposedly governing how glyphs are
drawn.
Since we allow font options to be different per
widget in gtk, we need to have them at least at
the level of individual render nodes. Adding them
to the lookup key for the glyph cache has the
side effect of solving another problem: We are
not flushing the cache when font options change.
Matthias Clasen [Fri, 3 Sep 2021 11:15:52 +0000 (07:15 -0400)]
gsk: Add font options to text nodes
Since font options affect how the glyphs get rendered,
we need to pass the font options down from the gtk level
to where the glyph cache is populated.
Add a new gsk_text_node_new_full api that takes a
cairo_font_options_t in addition to the other parameters.
Matthias Clasen [Fri, 3 Sep 2021 04:19:17 +0000 (00:19 -0400)]
gtk-demo: Improve the font rendering demo
Add a toggle for antialiasing, and make the metrics
hinting turn on rounding of positions, to match what
we do with settings now.
Matthias Clasen [Fri, 3 Sep 2021 14:49:09 +0000 (14:49 +0000)]
Merge branch 'wip/exalm/buttons' into 'master'
Allow custom children on GtkMenuButton
Closes #4205
See merge request GNOME/gtk!3904
Alexander Mikhaylenko [Fri, 3 Sep 2021 11:18:06 +0000 (16:18 +0500)]
menubutton: Support custom children
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4205
Matthias Clasen [Fri, 3 Sep 2021 00:55:45 +0000 (00:55 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Add a README in gtk/compose
See merge request GNOME/gtk!3916
Matthias Clasen [Fri, 3 Sep 2021 00:10:19 +0000 (20:10 -0400)]
Add a README in gtk/compose
Matthias Clasen [Thu, 2 Sep 2021 22:19:27 +0000 (22:19 +0000)]
Merge branch 'wip/smcv/transparent-is-transparent' into 'master'
reftest-compare: Treat colour channels as undefined if alpha is zero
Closes #4227
See merge request GNOME/gtk!3914
Simon McVittie [Thu, 2 Sep 2021 21:34:14 +0000 (22:34 +0100)]
reftest-compare: Treat colour channels as undefined if alpha is zero
If the alpha channel is zero, it doesn't matter what the values of the
red, green and blue channels are: the pixel is still fully transparent.
On most architectures, fully transparent pixels end up all-zeroes
(fully transparent black), matching what's in the reference PNG file;
but on mips*el the blend-difference and blend-normal tests get all-ones
(fully transparent white) and a test failure.
Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/4227
Signed-off-by: Simon McVittie <smcv@debian.org>
Jiri Grönroos [Thu, 2 Sep 2021 16:06:39 +0000 (16:06 +0000)]
Update Finnish translation
(cherry picked from commit
33a4ae12ef268a399d0dad0b205dd87f501b14da)
Aurimas Černius [Thu, 2 Sep 2021 10:51:39 +0000 (13:51 +0300)]
Updated Lithuanian translation
Matthias Clasen [Thu, 2 Sep 2021 01:33:06 +0000 (01:33 +0000)]
Merge branch 'fix-gst-subproject' into 'master'
media: Check for gstreamer verion instead of using cc.links()
See merge request GNOME/gtk!3910
Matthias Clasen [Wed, 1 Sep 2021 23:15:50 +0000 (23:15 +0000)]
Merge branch 'hint-metrics-setting' into 'master'
Add a gtk-hint-font-metrics setting
See merge request GNOME/gtk!3912
Matthias Clasen [Wed, 1 Sep 2021 21:16:08 +0000 (17:16 -0400)]
Update settings tests
We have a new setting, so the test that is counting
settings needs an update.
Matthias Clasen [Wed, 1 Sep 2021 19:17:53 +0000 (15:17 -0400)]
Add a gtk-hint-font-metrics setting
This lets people switch back to font rendering that is closer
to what GTK 3 does. It is not perfect - subpixel antialiasing
is not going to work. But it give us an Escape hatch while
we shake out the bugs in our linear layout.
Related: #3787
Matthias Clasen [Wed, 1 Sep 2021 16:59:38 +0000 (16:59 +0000)]
Merge branch 'color-glyph-info' into 'master'
Use color glyph information from Pango
See merge request GNOME/gtk!3909
Xavier Claessens [Wed, 1 Sep 2021 12:08:43 +0000 (08:08 -0400)]
media: Check for gstreamer verion instead of using cc.links()
This fix error when gstgl_dep comes from a subproject because in that
case it cannot be used in compiler checks.
Matthias Clasen [Wed, 1 Sep 2021 15:06:26 +0000 (15:06 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Initial support for new Pango attributes
See merge request GNOME/gtk!3911
Matthias Clasen [Wed, 1 Sep 2021 14:32:45 +0000 (10:32 -0400)]
Initial support for new Pango attributes
This is still missing the GtkTextTag hookup,
but it fixes the build.
Danial Behzadi [Wed, 1 Sep 2021 09:42:39 +0000 (09:42 +0000)]
Update Persian translation
Daniel Mustieles [Wed, 1 Sep 2021 09:02:13 +0000 (11:02 +0200)]
Updated Spanish translation
Matthias Clasen [Wed, 1 Sep 2021 05:38:44 +0000 (01:38 -0400)]
Use color glyph information from Pango
Pango now sets a bit in PangoGlyphVisAttr for
color glyphs, so we don't need to do that
ourselves anymore.
Nathan Follens [Tue, 31 Aug 2021 15:54:45 +0000 (15:54 +0000)]
Update Dutch translation
(cherry picked from commit
9aa08dd1b8b633990ac73efb76d9524f7ded32dc)
eshagh shahidani [Tue, 31 Aug 2021 14:41:54 +0000 (14:41 +0000)]
Update Persian translation
(cherry picked from commit
7691c94a3732e0349a4c868982159f613d6222dc)
Matthias Clasen [Tue, 31 Aug 2021 13:15:47 +0000 (13:15 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
editable: Clarify the docs
See merge request GNOME/gtk!3906
Matthias Clasen [Tue, 31 Aug 2021 12:41:45 +0000 (08:41 -0400)]
editable: Clarify the docs
Make it clear that your class must have all the editable properties
already before you call the (confusingly named) function
gtk_editable_install_properties.
Matthias Clasen [Mon, 30 Aug 2021 18:09:28 +0000 (18:09 +0000)]
Merge branch 'default-settings-non-debug' into 'master'
Revert "reftests: Enforce default settings"
See merge request GNOME/gtk!3903
Matthias Clasen [Mon, 30 Aug 2021 15:01:55 +0000 (11:01 -0400)]
gdk: Make GDK_DEBUG=default-settings unconditional
Our tests use this settings, so we should respect it
in non-debug builds as well.
Matthias Clasen [Mon, 30 Aug 2021 15:01:22 +0000 (11:01 -0400)]
Revert "reftests: Enforce default settings"
This reverts commit
4e4f57e091020750d66134c212d7778c17d96c20.
This should not be necessary, since we have GDK_DEBUG=default-settings.
Matthias Clasen [Mon, 30 Aug 2021 12:52:54 +0000 (12:52 +0000)]
Merge branch 'wip/smcv/compose-files' into 'master'
Fix Compose handling on big-endian host architectures
Closes #4217
See merge request GNOME/gtk!3902
Simon McVittie [Mon, 30 Aug 2021 09:54:43 +0000 (10:54 +0100)]
compose: Update sequences from libX11 1.7.2
This adds support for sequences like <Compose>,G,u -> capital G with
breve. Previously, only a capital U was accepted for E, G, I and O
(but a lower-case u was accepted for A and U for some reason).
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Mon, 30 Aug 2021 09:48:49 +0000 (10:48 +0100)]
compose: Document how to get compose-parse input from libX11 source
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Mon, 30 Aug 2021 09:13:33 +0000 (10:13 +0100)]
compose: Generate endian-dependent compact Compose data
The GtkComposeTable cache is always in big-endian format and is
byteswapped on load for the more common little-endian CPUs, but
init_builtin_table() in GtkIMContextSimple can't byteswap the built-in
data without copying it, which is undesirable. Pregenerate both big-
and little-endian compose data, and compile the correct flavour into
each build of GTK. This fixes failure of the composetable test when
building for a big-endian architecture such as s390x and (traditional,
big-endian) powerpc.
Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/4217
Signed-off-by: Simon McVittie <smcv@debian.org>
Benjamin Otte [Mon, 30 Aug 2021 04:37:49 +0000 (04:37 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
fontbutton: Make sure the window is on the same display
See merge request GNOME/gtk!3901
Benjamin Otte [Mon, 23 Aug 2021 05:06:37 +0000 (07:06 +0200)]
contentdeserializer: Fix some API awkwardness
Allow uninitialized GValues to be passed. Makes life easier for the
inspector code I'm writing.
Benjamin Otte [Fri, 20 Aug 2021 03:52:54 +0000 (05:52 +0200)]
node-editor: Allow dragging and dropping the center picture
Dragging will just drag the render node.
Dropping will replace the current contents of the textview with the
dropped node.
Neat side effect: You can drag the node onto itself to do a
deserialize/serialize of the current text.
Benjamin Otte [Fri, 20 Aug 2021 03:52:10 +0000 (05:52 +0200)]
recorder: Make the render nodes in the list draggable
You can (soon) drag any of the nodes directly into the node-editor.
Benjamin Otte [Fri, 20 Aug 2021 03:51:20 +0000 (05:51 +0200)]
dragicon: Add a default drag icon for GskRenderNode
Somebody should make this default drag icon machinery pluggable.
Benjamin Otte [Thu, 19 Aug 2021 22:30:04 +0000 (00:30 +0200)]
rendernode: Add (de)serialization support for render nodes
This includes our own new mime type for render nodes, too.
Benjamin Otte [Thu, 19 Aug 2021 21:36:16 +0000 (23:36 +0200)]
rendernode: Add GValue functions for render nodes
This is needed as GskRenderNode is its own fundamental type and has its
own GValue infrastructure. And I want to put render nodes into the
clipboard which uses GValues.
Benjamin Otte [Mon, 23 Aug 2021 05:06:25 +0000 (07:06 +0200)]
stylecontext: Remove unneeded headers
Benjamin Otte [Mon, 23 Aug 2021 03:55:56 +0000 (05:55 +0200)]
fontbutton: Destroy dialog in unrealize()
This way, we can be sure it's always using the right display.
We can also be sure that it doesn't leak.
Benjamin Otte [Mon, 23 Aug 2021 03:55:32 +0000 (05:55 +0200)]
fontbutton: Make sure the window is on the same display
We don't want the font buttons created by the inspector to run on the
default display.
Benjamin Otte [Mon, 30 Aug 2021 03:54:35 +0000 (03:54 +0000)]
Merge branch 'wip/otte/symbolic-paintable' into 'master'
Add GtkSymbolicPaintable
See merge request GNOME/gtk!3895
Benjamin Otte [Mon, 30 Aug 2021 03:50:30 +0000 (03:50 +0000)]
Merge branch 'wip/otte/G_TYPE_POINTER' into 'master'
Get rid of G_TYPE_POINTER
See merge request GNOME/gtk!3900
Benjamin Otte [Mon, 30 Aug 2021 02:56:43 +0000 (04:56 +0200)]
symbolicpaintable: Refactor default colors path
Benjamin Otte [Mon, 30 Aug 2021 02:52:47 +0000 (04:52 +0200)]
icontheme: Refactor gtk_icon_theme_lookup_symbolic_colors()
With the new enum, the code looks much cleaner.
Benjamin Otte [Mon, 30 Aug 2021 02:32:22 +0000 (04:32 +0200)]
enums: Add a GtkSymbolicColor enum
That way we don't nedmagic numbres to index the colors array.
Use it in the symbolic paintable demo.
Baurzhan Muftakhidinov [Sun, 29 Aug 2021 17:08:32 +0000 (17:08 +0000)]
Update Kazakh translation
(cherry picked from commit
37d2d407a192fc14df211ea57a788ffe3fd16762)
Baurzhan Muftakhidinov [Sun, 29 Aug 2021 07:41:36 +0000 (07:41 +0000)]
Update Kazakh translation
(cherry picked from commit
9e62fd82ea130b4eca052bf1313910c44a221b7e)
Benjamin Otte [Sun, 29 Aug 2021 04:10:31 +0000 (06:10 +0200)]
searchengine: Rename private headers
The code uses G_TYPE_POINTER and I got all sorts of scared.
Benjamin Otte [Sun, 29 Aug 2021 03:56:31 +0000 (05:56 +0200)]
filesystemmodel: Don't use G_TYPE_POINTER
It's a GError, use G_TYPE_ERROR.
Benjamin Otte [Sun, 29 Aug 2021 02:48:49 +0000 (04:48 +0200)]
placessidebar: Don't use G_TYPE_POINTER
We have a type for lists of GFiles. We invented it for DND.
Keep the annotation info, so bindings don't have to know this.
Benjamin Otte [Sun, 29 Aug 2021 02:47:50 +0000 (04:47 +0200)]
pathbar: Use correct GType in signal
Benjamin Otte [Sat, 28 Aug 2021 01:46:55 +0000 (03:46 +0200)]
gtk-demo: Add a symbolic paintable demo
Don't click the button!
Benjamin Otte [Fri, 27 Aug 2021 21:44:42 +0000 (23:44 +0200)]
gtk-demo: Explicitly pass nuclear icon colors
Benjamin Otte [Fri, 27 Aug 2021 22:23:29 +0000 (00:23 +0200)]
gtk: Port icontheme to GtkSymbolicPaintable
Benjamin Otte [Fri, 27 Aug 2021 21:33:56 +0000 (23:33 +0200)]
gtk: Add the GtkSymbolicPaintable interface
Benjamin Otte [Sun, 29 Aug 2021 00:47:34 +0000 (02:47 +0200)]
build: Check that introspection is enabled for docs build
Benjamin Otte [Sun, 29 Aug 2021 02:27:58 +0000 (04:27 +0200)]
docs: Fix vfunc references
vfunc references should just use the object name, not the
class/interface/iface name.